package com.dfrobot.demo.domain.entity;

import java.math.BigDecimal;
import javax.persistence.*;
import lombok.Data;

@Data
@Table(name = "order_voucher")
public class OrderVoucher {
    @Id
    @Column(name = "order_voucher_id")
    private Integer orderVoucherId;

    @Column(name = "order_id")
    private Integer orderId;

    @Column(name = "voucher_id")
    private Integer voucherId;

    private String description;

    private String code;

    @Column(name = "from_name")
    private String fromName;

    @Column(name = "from_email")
    private String fromEmail;

    @Column(name = "to_name")
    private String toName;

    @Column(name = "to_email")
    private String toEmail;

    @Column(name = "voucher_theme_id")
    private Integer voucherThemeId;

    private BigDecimal amount;

    private String message;
}